﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Sita.Presentation.ViewModels
{
    public class LogOnModel
    {
        [StringLength(20)]
        [DataType(DataType.Text)]
        [Required(AllowEmptyStrings = false, ErrorMessage = "*")]
        public string Username { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "*")]
        [StringLength(20)]
        [DataType(DataType.Password)]
        public string CurrentPassword { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "*")]
        [StringLength(20)]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Required(AllowEmptyStrings = false, ErrorMessage = "*")]
        [StringLength(20)]
        [DataType(DataType.Password)]
        public string PasswordConfirmation { get; set; }

        public string ErrorMessage { get; set; }

        public string AuthenticatedUrl { get; set; }

        public string HomePage { get; set; }

        public bool Result { get; set; }

        public bool MustChangePassword { get; set; }

        public bool UserIsLogged { get; set; }
    }
}
